import axios from '../util/request'
// 显示用户数据
export const user=(val)=>{
    console.log(val);
    return axios.get('/adminapi/user/user',val)
    // return axios.get(`/adminapi/user/user?label_id=${val.label_id}&user_type=${val.user_type}&status=${val.status}&sex=${val.sex}&is_promoter=${val.is_promoter}&country=${val.country}&pay_count=${val.pay_count}&user_time_type=${val.user_time_type}&user_time=${val.user_time}&nickname=${val.nickname}&province=${val.province}&city=${val.city}&page=${val.page}&limit=${val.limit}&level=${val.level}&group_id=${val.group_id}`)
}
// 用户等级
export const vip_list=(val)=>{
    return axios.get(`/adminapi/user/user_level/vip_list?page=${val.page}&limit=${val.limit}&title=${val.title}&is_show=${val.is_show}`)
}
// 用户分组
export const list=(val)=>{
    return axios.get(`/adminapi/user/user_group/list?page=${val.page}&limit=${val.limit}`)
}
// 用户标签
export const user_label=(val)=>{
    return axios.get(`/adminapi/user/user_label?page=${val.page}&limit=${val.limit}`)
}
// 用户编辑
export const edlitF=(val)=>{
    return axios.get('/adminapi/user/user/8/edit')
}
// 用户编辑提交
export const submitElit=(val)=>{
    return axios.put('/adminapi/user/user/9.html',val)
}
// 点击更多
// 弹出遮罩层
// 设置分组提交
export const zu=(val)=>{
    return axios.put('/adminapi/user/save_set_group.html',val)
}
// 设置标签提交
export const biao=(val)=>{
    return axios.put('/adminapi/user/save_set_label.html',val)
}
// 发送优惠券
export const you=(val)=>{
    return axios.get('/adminapi/marketing/coupon/grant?page=1&limit=15&title=')
}
// 财务--充值记录 
// 导出
export const exsolx=(val)=>{
    return axios.get(`/adminapi/export/userRecharge?data=&paid=&nickname=`)
}
// 获取数据
export const finance=(val)=>{
    return axios.get(`/adminapi/finance/recharge?data=${val.datas}&paid=${val.paid}&nickname=${val.nickname}&excel=${val.excel}&page=${val.page}&limit=${val.limit}`)
}
// dl数据
export const recharge=(val)=>{
    return axios.get(`/adminapi/finance/recharge/user_recharge?data=&paid=&nickname=`)
}
// 删除
export const delefun=(val)=>{
    return axios.delete(`/adminapi/finance/recharge/${val}`)
}